package com.ruoyi.feedback.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.feedback.mapper.TbDateFeedbackMapper;
import com.ruoyi.feedback.domain.TbDateFeedback;
import com.ruoyi.feedback.service.ITbDateFeedbackService;

/**
 * 约会反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
@Service
public class TbDateFeedbackServiceImpl implements ITbDateFeedbackService 
{
    @Autowired
    private TbDateFeedbackMapper tbDateFeedbackMapper;

    /**
     * 查询约会反馈
     * 
     * @param feedbackId 约会反馈主键
     * @return 约会反馈
     */
    @Override
    public TbDateFeedback selectTbDateFeedbackByFeedbackId(Long feedbackId)
    {
        return tbDateFeedbackMapper.selectTbDateFeedbackByFeedbackId(feedbackId);
    }

    /**
     * 查询约会反馈列表
     * 
     * @param tbDateFeedback 约会反馈
     * @return 约会反馈
     */
    @Override
    public List<TbDateFeedback> selectTbDateFeedbackList(TbDateFeedback tbDateFeedback)
    {
        return tbDateFeedbackMapper.selectTbDateFeedbackList(tbDateFeedback);
    }

    /**
     * 新增约会反馈
     * 
     * @param tbDateFeedback 约会反馈
     * @return 结果
     */
    @Override
    public int insertTbDateFeedback(TbDateFeedback tbDateFeedback)
    {
        return tbDateFeedbackMapper.insertTbDateFeedback(tbDateFeedback);
    }

    /**
     * 修改约会反馈
     * 
     * @param tbDateFeedback 约会反馈
     * @return 结果
     */
    @Override
    public int updateTbDateFeedback(TbDateFeedback tbDateFeedback)
    {
        return tbDateFeedbackMapper.updateTbDateFeedback(tbDateFeedback);
    }

    /**
     * 批量删除约会反馈
     * 
     * @param feedbackIds 需要删除的约会反馈主键
     * @return 结果
     */
    @Override
    public int deleteTbDateFeedbackByFeedbackIds(Long[] feedbackIds)
    {
        return tbDateFeedbackMapper.deleteTbDateFeedbackByFeedbackIds(feedbackIds);
    }

    /**
     * 删除约会反馈信息
     * 
     * @param feedbackId 约会反馈主键
     * @return 结果
     */
    @Override
    public int deleteTbDateFeedbackByFeedbackId(Long feedbackId)
    {
        return tbDateFeedbackMapper.deleteTbDateFeedbackByFeedbackId(feedbackId);
    }
}
